//
//  InfoType.m
//  Trading365
//
//  Created by yifei tong on 12-2-7.
//  Copyright (c) 2012年 dhc. All rights reserved.
//

#import "InfoType.h"

static InfoType * infotype;

@implementation InfoType


+ (InfoType *) share
{
    if (infotype) {
        return infotype;
    }
    infotype = [[InfoType alloc] init];
    return infotype;
}

- (InfoType *) init
{ 
    tranValueDict=[[NSMutableDictionary alloc] initWithCapacity:0];
    self = [super init];
    return self;
}

-(void)SetTranValueDict:(NSMutableDictionary *)dict
{
    tranValueDict=dict;
}
-(NSMutableDictionary *)GetTranValueDict
{
    return tranValueDict;
}

- (void)dealloc {
    [super dealloc];
}

-(void)SetFlagInfoType:(int)flag
{
    flagInfoType=flag;
}

-(int)GetFlagInfoType
{
    return flagInfoType;
}

-(void)SetFlagFreshView:(int)flag
{
    flagFreshView=flag;
}

-(int)GetFlagFreshView
{
    return flagFreshView;
}

-(BOOL) IsPad {
#ifdef __IPHONE_3_2
    return UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad;
#else
    return NO;
#endif
}

-(BOOL)IsSimulator{
#if (TARGET_IPHONE_SIMULATOR)
    return YES;
#else
    return NO;
#endif
}

@end
